package com.chixing.ih.module.task.pojo.DTO;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import org.springframework.data.annotation.Id;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * 目的:
 *
 * @author ：zcw
 * @version: 1.0  2020/10/11 11:00
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Accessors(chain = true)
public class MongoDBCommentDTO implements Serializable {

    private Long commentId;

    private Long taskId;

    private String content;

    private Long userId;

    @ApiModelProperty(value = "用户昵称", required = true)
    private String nickName;

    @ApiModelProperty(value = "用户头像地址", required = true)
    private String imgUrl;

    private Long commentParentId;

    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date createTime;

    private Integer thumbup;

    List<MongoDBCommentDTO> reply;


}
